#include<iostream>
#include<string>
using namespace std;
void String_shownmber();
int main()
{
    String_shownmber();
    system("pause");
}

void String_shownmber()
{
    string str1,str2;
    cout<<"Please enter a string:"<<endl;
    cin>>str1;
    cout<<"Please enter another string:"<<endl;
    cin>>str2;
    int str1_number=str1.length();
    int str2_number=str2.length();
    int count=0;
    int index=0;
    int flag=0;
    for (;;)
    {
        flag=str1.find(str2,index);
        if(flag>=0) {
            count++;
            index++;
        }
        if(flag=str1_number-str2_number-1) break;
        
    }
    cout<<count<<endl;
}